/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _EULEROS_DUMP_H
#define _EULEROS_DUMP_H

#ifdef CONFIG_EULEROS_DUMP
#ifdef CONFIG_ARM64
extern volatile unsigned long dump_oncpu;
#elif defined CONFIG_X86
extern volatile unsigned long cpus_sched_wait;
#endif
extern void wait_on_dump_stack(void);
extern int euleros_get_dump_flag(void);
#else
static inline void wait_on_dump_stack(void){};
static inline int euleros_get_dump_flag(void)
{
	return 0;
}
#endif /* CONFIG_EULEROS_DUMP */
#endif /* _EULEROS_DUMP_H */
